home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / amigaoscd / amigapluscd / AP-Website / news / admin / change_author.php < prev    next >
Text File  |  2002-01-27  |  1KB  |  49 lines

  1. <html>
  2. <head>
  3. <title>AmigaPlus News Admin</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. </head>
  6.  
  7. <body bgcolor="#66CCFF" text="#000000">
  8. <?php
  9.     
  10.     $server = "db04.puretec.de";
  11.     $db = "db24905524";
  12.     $login = "p343302";
  13.     $pass = "90f42902";
  14.     
  15.     $dbwww = mysql_connect($server,$login,$pass);
  16.     mysql_select_db($db,$dbwww);
  17.     
  18.     $query = "select id, short_name, full_name from amigaplusnews_authors where id = $authorentry limit 1";
  19.     $query_result = mysql_query($query,$dbwww);
  20.     list($id,$short,$long) = mysql_fetch_row($query_result);
  21.  
  22. ?>
  23.  
  24. <p><b><font size="+1">AmigaPlus News Admin</font></b></p>
  25. <p><a href="index.php">zurück</a></p>
  26. <table width="100%" border="0" cellspacing="0" cellpadding="2">
  27.   <tr> 
  28.     <td bgcolor="#0099FF"><b>Autor ändern </b><font size="-1"></font></td>
  29.   </tr>
  30.   <tr> 
  31.     <td> 
  32.       <form name="update_author" method="post" action="update_author.php">
  33.       <input type="hidden" name="id" value="<?php echo $id ?>">
  34.         <p>Kurzform: [ 
  35.           <input type="text" name="short_name" maxlength="10" value="<?php echo $short ?>">
  36.           ]<br>
  37.           Voller Name: 
  38.           <input type="text" name="full_name" maxlength="100" size="30" value="<?php echo $long ?>">
  39.           <br>
  40.           <input type="submit" name="submit" value="speichern">
  41.         </p>
  42.       </form>
  43.     </td>
  44.   </tr>
  45. </table>
  46. <p> </p>
  47. </body>
  48. </html>
  49.